/*
 * @Author: hmhvictory 1400628624@qq.com
 * @Date: 2025-07-17 16:08:41
 * @LastEditors: hmhvictory 1400628624@qq.com
 * @LastEditTime: 2025-07-17 16:27:02
 * @FilePath: \实训笔记\day04\homework\Test3.java
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
package day04.homework;

public class Test4 {
  public static void main(String[] args) {
    double price = 9.99;
    int discountedPrice = (int) price;
    System.out.println(discountedPrice);// 输出 9
  }
}
